package com.nie.orderfood.Utils;

import java.util.Random;

/**
 * @program: orderfood
 * @description: 生成随机id的工具类
 * @author: NieMiao
 * @create: 2018-10-10 14:45
 **/
public class GenIdUtil {

    public static synchronized String  genOrderMasterId(){

        Random random = new Random();
        int i = random.nextInt(900000) + 100000;

        return System.currentTimeMillis() + String.valueOf(i);
    }
}
